﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SMP_QuanLySV.Presentation
{
    public partial class frmMain : Form
    {

        public frmMain()
        {
            InitializeComponent();
            // my code
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            
        }

        

        private void QLTonGiaoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_TonGiao(this));
        }

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            
        }

        private void thoatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Environment.Exit(0);
        }

        private void danhSachDanTocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_QLDanToc(this));
        }

        private void btnTimKiemSV_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_TimKiemSV(this));
        }

        private void btnThemSV_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_ThemSinhVien(this));
        }

        private void danhSachKhoaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_Khoa(this));
        }

        private void danhSachNganhHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_Nganh(this));
        }

        private void quanLyCTDTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_CTDT(this));
        }

        private void danhSachTrinhDoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_TrinhDo(this));
        }

        private void logOutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UIManager.switchToLoginForm();
        }

        private void frmMain_FormClosed(object sender, FormClosedEventArgs e)
        {
            Application.Exit();
        }

        private void doiPasswordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_DoiPass(this));
        }

        private void danhSachLopToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_Lop(this));
        }

        private void nhapDiemLan1ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_BangDiem(this, 1));
        }

        private void nhapDiemLan2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_BangDiem(this, 2));
        }

        private void nhapDiemLan3ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_BangDiem(this, 3));
        }

        private void kyLuatSVToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_KyLuat(this));
        }

        private void baoLuuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_BaoLuu(this));
        }

        private void chuyenLopToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_ChuyenLop(this));
        }

        private void choThoiHocToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_ThoiHoc(this));
        }

        private void xetLuuBanLenLopTCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            panelMain.Controls.Clear();
            panelMain.Controls.Add(new UC_LuuBan(this));
        }
    }
}
